package com.sky.controller.user;

import com.sky.result.Result;
import com.sky.service.user.ShoppingService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.ibatis.type.Alias;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "用户端店铺状态模块对应接口")
@RestController("userShopController")
@RequestMapping("user/shop")
@Alias("userShopController")
public class ShopController {
    @Autowired
    private ShoppingService service;

    @GetMapping("status")
    @ApiOperation("用户端端获取营业状态的业务接口")
    public Result<Object> getShopStatus(){
        Result<Object> result = service.getShopStatus();
        return result;
    }

}
